<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <link type="text/css" rel="stylesheet" href="resources/css/login.css" />
        <title>Registration page</title>
    </h:head>
    <h:body>
        <h:form id="register_form">
            <p:panel id="registerPanel" widgetVar="panel" toggleable="true"  toggleSpeed="500">
                <h:outputText value="This is a placeholder for the generated page"/>
                <ui:include src=""/>
            </p:panel>
            <p:commandButton value="Register"/>
        </h:form>
        <h:form id="getXML">
            <h:outputText value="Download an xml file for a country from the webservice: "/>
            <br/>
            <h:outputLabel for="country" value="Country: "/>
            <p:selectOneMenu id="typeMenu" required="true" value="#{Dummy.country}">
                <f:selectItem itemLabel="Romania" itemValue="ROU" />
                <f:selectItem itemLabel="Great Britain" itemValue="GBR" />
                <f:selectItem itemLabel="Spain" itemValue="ESP" />
            </p:selectOneMenu>
            <br/>
            <p:commandLink id="downloadLink" value="Download" ajax="false">
                <p:fileDownload value="#{Dummy.file}" />
            </p:commandLink>
        </h:form>

    </h:body>
</html>

